package org.speedmall.business.amount.core.service;

import org.speedmall.amount.api.bo.AmountDecreaseBO;
import org.speedmall.amount.api.bo.AmountIncreaseBO;
import org.speedmall.business.amount.core.entity.Account;
import org.springframework.stereotype.Service;

/**
 * @author hujiaguo
 * @Package org.speedmall.business.amount.core.service
 * @date 2024/4/25 16:23:43
 */
@Service
public interface AmountService {
    /**
     * 增加金额
     */
    void increaseAmount(AmountIncreaseBO increaseBO);

    /**
     * 减少金额
     */
    void decreaseAmount(AmountDecreaseBO decreaseBO);

    /**
     * 通过id查找
     * @param id
     * @return
     */
    Account findById(Long id);

    /**
     * 通过属性查找
     * @param account
     * @return
     */
    Account findByParma(Account account);
}
